package com.edais.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.edais.domain.RiskEvaluation;
import com.edais.persistence.RiskEvaluationMapper;

@Repository
public class RiskEvaluationDao {
	
	@Autowired
	private RiskEvaluationMapper riskEvaluationMapper;
	
	public RiskEvaluation selectRiskEvaluationByUserId(Integer userId) throws Exception{
		return riskEvaluationMapper.selectRiskEvaluationByUserId(userId);
		
	}
	    
    public int updateOrInsert(RiskEvaluation record) throws Exception{
		return riskEvaluationMapper.updateOrInsert(record);
    	
    }
    
    public List<Map<String, String>> queryParamValue(String name) throws Exception{
    	return riskEvaluationMapper.queryParamValue(name);
    }
    

}